package com.abo.yaas.authentication;

import java.io.Serializable;

import com.abo.yaas.domain.User;

/**
 * Event which is dispatched when a user logs out.
 */
@SuppressWarnings("serial")
public class UserChangeEvent implements Serializable {
    private final User user;

    /**
     * @param user
     *            The user who is been logged out
     */
    public UserChangeEvent(User user) {
        this.user = user;
    }

    /**
     * Get the user who has been logged out
     * 
     * @return The user object of the logged out user
     */
    public User getUser() {
        return user;
    }

}
